<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<div align="left"> </div>
<table width="1158" border="0" cellpadding="0" cellspacing="0" bgcolor="#6699FF">
  <tr> 
    <td width="258" valign="top" rowspan="2"><a href="home.php"><img src="/Images/libros2.jpg" width="92" height="138"><font size="7" color="#FFFFFF">Librejo!</font></a></td>
    <td width="577" height="130"></td>
    <td width="252"></td>
    <td width="16"></td>
    <td width="55"></td>
  </tr>
  <tr> 
    <td height="21"></td>
    <td valign="top">Bienvenido Administrator</td>
    <td></td>
    <td valign="top"><a href="AdminManager.htm">Logout</a></td>
  </tr>
</table>
<br>
<br>

<form name="AddItemForm" enctype="multipart/form-data" method="POST" action="search.php">
<table width="1158" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="237" height="63"></td>
    <td width="42"></td>
    <td width="808"> Code:
      <input type="text" name="id">
      <input type="submit" name="Search" value="Search"></td>
   </form>

    <td width="71"></td>
  </tr>
  <tr> 
    <td height="270" valign="top"> 
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#6699FF">
        <tr> 
          <td width="237" height="32"></td>
        </tr>
        <tr> 
          <td valign="top" height="41" bgcolor="#CCFF66"> 
            <div align="center"><font color="#999900"><b><font size="4" color="#3333FF"><a href="adminHome.php">Agregar 
              Libro </a> </font></b></font></div>
          </td>
        </tr>
        <tr> 
          <td height="16"></td>
        </tr>
        <tr> 
          <td height="41" valign="top" bgcolor="#CCFF66"> 
            <div align="center"><font size="4"><b><font color="#3333FF"><a href="modifyItem.php">Modificar Libro</a></font></b></font></div>
          </td>
        </tr>
        <tr> 
          <td height="15"></td>
        </tr>
        <tr> 
          <td height="41" valign="top" bgcolor="#CCFF66"> 
            <div align="center"><font size="4" color="#3333FF"><b><a href="addSection.html">Agregar Seccion</a></b></font></div>
          </td>
        </tr>
        <tr> 
          <td height="18"></td>
        </tr>
        <tr> 
          <td height="41" valign="top" bgcolor="#CCFF66"> 
            <div align="center"><font size="4" color="#3333FF"><b>Modificar Seccion</b></font></div>
          </td>
        </tr>
        <tr> 
          <td height="25"></td>
        </tr>
      </table>
    </td>
    <td></td>
    <td rowspan="2" valign="top">

<?php 
	$serverpath=$_SERVER['DOCUMENT_ROOT'];
	include ($serverpath.'/Classes/book.php');
	include ($serverpath.'/funciones.php');
	$searchbook = file_get_contents('store_searchbook');
	$book = unserialize($searchbook);
echo'
<form name="AddItemForm" enctype="multipart/form-data" method="POST" action="modifyBook.php">
		
  <table width="853">
    <tr> 
      <td> Title of the Book: 
        <input type="text" name="title" value='.$book->get_title().'>
		Author of the book: 
        <input type="text" name="author" value='.$book->get_author().'>
      </td>
    </tr>
    <tr> 
      <td> 
        <textarea cols="80" rows="15" name="textArea">'.$book->get_text().'</textarea>
      </td>
	  <td></td>
    </tr>
    <tr> 
      <td> 
        <select name="select">
          '.retriveSection().'
        </select>
        <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
        Choose a Picture to upload: 
        <input name="uploadedfile" type="file" value='.$book->get_picture().'>
		Price: 
        <input type="text" name="price" size="3" value='.$book->get_price().'>
        Amount: 
        <input type="text" name="amount" size="3" value='.$book->get_amount().'>
      </td>
      <td height="30"> 
      </td>
    </tr>
    <tr> 
      <td height="35" valign="top"> 
        <input type="reset" name="Reset" value="Clear">
        <input type="submit" name="Submit" value="Modificar Libro">
      </td>
	  <td></td>
    </tr>
  </table>
</form>'
?>	
	</td>
    <td></td>
  </tr>
  <tr> 
    <td height="63"></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td height="78"></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>
</body>
</html>
